boundary and walker's path weight update implementation(done, but need
check&test)