final version for parameterGrid.py