changed the arraylist to the more generic list