changed all Lists to ArrayLists