enable n_val feature