changed compare.py