threshold filtering and reduced searching impl'ed