bgdist
