change the Rows() and Cols() to rows and cols