added check for no rule