refactor: move decay thresh outside