return to prev state