changed from array to list