mussel,test: update rule generation way.