restore some changes