use ipairs for ws affinity arrays