use map for grid