added bug explanation
buf_size bug fix