fixed amd and tested it