typos in num_cols && num_rows