debugged fa2.py