working with templated integrator