changing PGobject return