use #provider{} instead of record(provider) for type