changed eigs(W) to eig(W)