modify hamlet