 				)>
 			</cfif>
 
-
-
 			<!--- see if we have a kingdom. If not, add a blank row for it ---->
 			<cfquery name="hasterm" dbtype="query">
 				select term from hasclass where term_type='kingdom'
 			</cfquery>
 			<cfif hasterm.recordcount neq 1>
-				<p>
-					no kingdom do something
-				</p>
-				<cfset x=getAppPosn('kingdom')>
 				<cfset queryaddrow(hasclass,
-					{POSITION_IN_CLASSIFICATION=x,
+					{POSITION_IN_CLASSIFICATION=getAppPosn('kingdom'),
 					SRC='autosuggest',
 					TERM='',
 					TERM_TYPE='kingdom'}

						select term from hasclass where term_type='subspecies'
					</cfquery>
					<cfif hasterm.recordcount neq 1>
						<p>
							no subspecies do something
						</p>

				select term from hasclass where term_type='genus'
			</cfquery>
			<cfif hasterm.recordcount neq 1>
				<cfset queryaddrow(hasclass,
					{POSITION_IN_CLASSIFICATION=getAppPosn('genus'),
					SRC='flaky_autosuggest',
					TERM=listGetAt(thisname.scientific_name,1,' '),
					TERM_TYPE='genus'}
				)>
			</cfif>

			<!---- see if this looks like a multinomial ---->
			<cfif listlen(thisname.scientific_name,' ') gt 1>
				<!--- see if we have a genus. If not, add a blank row for it ---->
				<cfquery name="hasterm" dbtype="query">
					select term from hasclass where term_type='species'
				</cfquery>
				<cfif hasterm.recordcount neq 1>
					<cfset queryaddrow(hasclass,
						{POSITION_IN_CLASSIFICATION=getAppPosn('species'),
						SRC='autosuggest',
						TERM=listgetat(thisname.scientific_name,1,' ') & ' ' & listgetat(thisname.scientific_name,2,' '),
						TERM_TYPE='species'}
					)>
				</cfif>
				<!--- >bi-nomial? ---->
				<cfif listlen(thisname.scientific_name,' ') eq 3>
