use hashset to avoid duplicating stored events