restores to previous commit