threshold change n_keep to cost