made a nice clean indexing thing