added rule check