delete userless code in providerCtrl