moved max_row_norm assert