regime change detection