core fitting for shifts, sigma clipping