update based on lecture