distance now only logged if non-negative