main graph