added encoding for has representation indicator.