I think there are some & missing.
As i said, please threat this as pseudocode.