make expected-size a maximum-size check as this is what we want at this point