refactoring for 3D graph
refactoring for 3D graph removed