actually, scrap that - missed the fact you have more code below!