updates to ordered and unordered set