added clear() to the array for selecting more than once