doeventinfo: the first section of code