condition for message of chart 2