working toRows