sorted out the maps so no overlaps