hartree method added