add AMD to the code