added char accumulator + output