replace list of list with list of dict