vinay - scrapped fifo passing entire array