small code claryfication for future replacement of std::function