added p to list of acceptable elements