restored previous state