updates to lecture 6