changes to lecture 6