use temporary table to make search more quick