use another method to calculate chars