adding an array-list to track tokens