added 3d panning