draw the graphs for num comp
new dot search function