rules modifications to fix errors