index using id instead of map element id