reset head to earlier version