formatting rows, first pass, lots TODO