correction of the nearest peak, and of the SG correction