using create_function instead of anonymous function