using set for process data structure