changed to ArrayList