this is code for event sample code with drunken