relate FIFO and LIFO together