update enum and type def lecture