remove unnecessary anonymous wrapper function