before switching play_input