removed C wrapper
compatibility with Distance package