removed use of array list