implemented getDiscomfortWarning