commit the correct file