change p graph