added efficient bounds calculus for h2d