added ph(docCY_ forked version)