changes to lecture 7