exits arraylist