removed legacy code size check