commit before subgraph