update measureAmplitudes()