adding graphs
fixing compilation errors