commit the current code