end of row calc
second row write data