cleaned cost distance V2