forgot to export hdi function