well i feel dumb on this one - leaving the old code in place to look at later