possible memory corruption: store object so that it is reachable by the GC or don't run collection in the further newPyrXXX functions