commit the index