num_chars not working