fixed anonymous function call