rename closure to thunk in code generation level