fixed major problem with regression.py