commit to index