remove obsolete size check