use of pp was causing errors