added eps. main controls the eps up to the hamiltonian