change dict threshold