background changes as rule changes