add getter to the message class