initialized arraylist correctly