setting up of event, first function to add single event