ps11
adding ps12 exact copy of ps9
simplifying code