arraylists

arrays changed to array list