corrected size comparison