fixing create provider