fix of anonymous function cration