removed use of local variable providerName, uses params.