added setting the next transition