helper for DynamicHeft