for creating graphs