fixing rule check