dynamic distance updated