eigs function is used now