change hP->create references to hP->gE (generateElement)