ensure were dealing with rows (a matrix)