correctly format row