update search for a range using Huang's template