revert to prev state