array list to object for convenience