working integrator with primitive inputs 2