reduced copy size for regression.py