fix anonymous function example