fixed bug in pp