use running size instead of map size