added graph creation