change buf to chain is sucess