code for the hack event