removed unused endTransition method