fixing yMatrix and yTranspose