added comments to add events to main