add code to renderMap