creating a list instead of dictionary