fixing amd define