allows run.py to choose xmin and xmax (line 565)