implement fifo for wb buffer