added explanation for retryOnError