removed unused variable dist