build the dict