solved problems with abstract forms of anonymous functions