moved the variable OUTSIDE the message attributes