arraylist and amp