added struct pOptions