add code to populate v_event
finish debugging added code in the previous commit