commit before reverting changes