add distance compute interface