modifications for 3D again