re-addition of predict.ptw