third step for hartree added