modified:   fsa.py