Removed for loop in  rowCol method