put readjustment code into 3D land