message generation problem