adding Col and Row, and linearising