commit for arraylist