fast indexing implemented