rename chars to num_chars