change and tested cmp_main.py