add hamlet text