write line data correctly for kin