removing duplicate distance input