Calibration of squares