change rules adding method to modular way