improper use of closure

- variables passed into the anonymous function from the parent scope has
to be via the use language construct

Signed-off-by: -Underdog- github.underdog@gmail.com