learning_switch2.sh: fast version