transition and debug