distance obj to dom