osgprolect code