working integrator with primitive inputs