clear the arraylist after each run.