added get type to provider