the 3d to px conversion now working