updated config with threshold