allows maxSize to be overridden

allows maxSize to be override.