duringTransition method