[lib] less trash in the closure