implementation change

changed implementation from dictionary to list of dictionary