added retiming hmats