refine the baselines for longitudinal data and x-wrapped time series