why is a max_size needed?