add index of the data