completed dynamic indexing