changed cases.py