MAINT: using maxsize, thanks @Jorge-C