added ability to dynamically change map size