bit more tidying of code
interim commit item trees