make ToDictionary "determenistic"