move integral gain inside integral