xcoord = np.append(xcoord, xcoord[:, -2].reshape(n, 1), axis=1)