r1123 + new constant: PORTS_PER_ROW