separate declearation of graph