added commented out distance calc