 							t.dataset_id
 						);
 
-
 						-- now assign the term we just made's ID to parent so we can use it in the next loop
 						v_pid:=v_tid;
 					end if;
-
-
 				end loop;
 				-- log
-				insert into htax_temp_hierarcicized (taxon_name_id,dataset_id,status) values (t.taxon_name_id,t.dataset_id,'success');
+				insert into htax_temp_hierarcicized (taxon_name_id,dataset_id,status) values (t.taxon_name_id,t.dataset_id,'inserted_term');
 				exception when others then
 					insert into htax_temp_hierarcicized (taxon_name_id,dataset_id,status) values (t.taxon_name_id,t.dataset_id,'fail');
 				end;

					}
				);
			});











			$( "#srch" ).change(function() {
				performSearch();
			});

				performSearch();
			});
		});
		// end ready function


		function performSearch(){
