modified reggression to actually output rows to rows.csv