added map size writeout