renamed map to index