restore the unnecessary changes