rules formatting