add distance field