separating index from map