fixed return Values in providerDelegate