added setting the next transition

I think the comment should be on its own line before the code.