making sure all rows have the same length