erase duplicated functions-lambdas