added new event, fixed main