put back in size check to avoid problems with quad math and negative sizes