wrote quick script to plot distances