adding rules to the features