added 3d parameters