send copy of buffer before deleting