approach 1 for pprime
approach 2 for pprime(this works!)