fix inefficient rule