buffer writes