maintain the 3d geometry