added user and provider variable