add initialization l_buf and d_buf