implemented region search