updated functions lecture