removed debug code on PSDocument