methods.py update