fix rules formatting