working on comparison data structure