change "auto kNN" to "safe region", refactor DemoData.