modified provider to remove raise exception