modified methods.py