made an anonymous function

made an anonymous function