allows maxSize to be overridden