fixed function expression

I can now pass in an anonymous function