changing call of anonymous function