fixing typos
new index generation