added size to map and map reader