cleaned up HDP codes