changed x to p