moved second check of Sources nextTransition into the new run block