* review: remove unnecessary creation of anonymous function