write lines