removing transition function