fixes in regression.py