changing the function of betweenEvents to calendar-driver