repaired steps.py