should use a const auto& scheduler  -> since its not transferring ownership