made buffer of fifo dynamical allocated