forgot to transpose ydata