message generator working