updated for lecture