refactor extract_values_for_results_data  a little
minor refactoring