swap sets when editing rules