wasted time using a list when I need a dynamic array for random access