small changes to lecture 8