added avg dist comparison fro demo