bm_index function

Mapper for indexed variables