more work on rules