update the midterm report and fix a bug