need to fix distance input