updated code in '_get_result_paths'