add index to map