fixed addAmplify declaration