working up ordered set