off by one in row formatting