adding index of data