recalibrate function patch 1/2