right - old code was slower so I changed it to only calc once, new code is faster, I'll fix that.