implemented "map switching"