change the ArrayList to Set