functions lecture update