adding the midterm