automatically commit the changes