this way hwname can be nil if res_list is empty