Energy eigenvalues from a modified operator method