change rule.to_s