Update AMS.cpp

tesing