fixed the issue of setting incorrect values to decide an area to search
refine notation