make graph work