modified JVal.py