make y input matrix