changed X = U(:,1:4)