fixing arraylists