commit before edit