error if map size isn't a number