proper functionalized closure