added char buffer