added 3d improvements