frequency.py update