create amd functionality