improve work with rules and sets collections