adding and adapting the ref's Annie sent me on Sept 4