basic size comparison logic