remove anonymous function wrapper