remove anonymous wrapper function