outer loop tweak