changed arraylists to arrays