checkRules method completed