minor tweaks to midterm work