commit before reverting