moved indexing logic from ahd to parent
moved indexing logic from dummy dict to parent