updates to lecture 7