added switch to 3d