added function names to anonymous functions.