removed .T in eigh calculating since the matrix is symmetric