optimize performance used by std::move