switch to set
fix crash
fix set iteration
hmm