getting rid of the p's in an array by looping through it