add extern statement