bugfixed, didn't use all rows