make graph global