declared an anonymous function with 3 parameters