remove std::function declaration, it is not needed anymore