echo messages assigned to variable