refactor a closure
1.1.2