gets rid of old changes that are not necessary