handling empty events and stuff