set variables for messages to refactor a bit