make adj_pval work with lists