changes to lecture 8