starting to build graph