corrected logic for aers drug and reac