adjust indexing