fix the buffer size,performance tuning!