Fixed myRules func