nesting and threshold tweaks