tmp Added transition function