let numberOfTransitions = ref 0