write the rules