replace all calls to ```@distance``` with a call to ```@distance_vector```  note that ```@distance_vector``` doesn't take an @data argument.