added a few things from lec 49