final batch of changes to lecture 23