fixed indexing thing