replace FifoArray dependency by using array.splice() instead