add simple distance measure to output