map data divided into two arrays