wrap it in a closure capturing global