revise number of graphs