Compensation for temperature, bending of tool