adding AMDeviceTypeID code