methods.py updated