updated rule check