add third code portion