testing where the p and end of p come from