changed atm.py