adding to index and commiting