complete prior code