added helper functions Row, Col, Sub