returned state to previous