3D: abstraction and optimalization