trying to add some indexing functionality