pyro code broken and I can't work out why.