added default mode as the optimized one in main_v1.py