I added debugnote and some debug for transition(function)