new fifo gains function