modify rules.php