modified to use process_variables.py