clean up hdp codes