simplified addtobuffer