added guard function to Transition (in order to be conform with current work/examples)