add delete function
add extensive testing for eventlist