remove use of OrderedDict in order to avoid trying to sort elements from different types