commit the index change