setup of graph