minor fix.   corrected minor param type

i used a template on something that was only supposed to be a std::function