cleaned up rules templates