reformatting anonymous function.