rules: new common functions in old code insterted