updated stuff for arraylists