add functions to PGEMbase