convert anonymous function to anonymous inline function :)