use auto& for histories