transitions for both shapes