adding htrc extensions and label function