add array data structure. list may be used less. fifo might be enhanced