updated the map width and height