added code sto redraw map