renamed dynamic array to list