associating points with indeces