adding dist to edge props