changes to save memory is result_file classes