put thunk back into integral