working write buffer