fixed bug for chars that aren't given in the set of rules