updates to lecture 13