prs_functions.py