add new line terminating path find if distance is too large