lazily commit to the index