modified methods.py

modified methods.py