remove echo and stream chunk