now receiving transitionFunction