changing the provider in FactorySIngleton