maybe use a `(for int i = 0; i < set.size(); i++)` instead