added check of transitions loop