more changes in changepoint algorithm