removed global from draw_map