for the new 3d thread