updated my 3 rules + added remove-subset function