fixed things from midterm comments