added rangesearch