use ricardo's nicer hamiltonian syntax