naming anonymous function

for better stack traces