initial creation of index