removing amd define hook