optimize ensureSizeFor
set version to 7