added a method to extract a headgroup profile