throw invalid ams amount