find boundary v1