update retrieve_data_vals, adding docstring