added distance updater