replace list with p