Changed all type of coordinate search to range search