fixed bug in prior commit now uses build_rows too