assignment of flags moved to evalAmplitude