added input gain control to looper