fixed function calls for the Nog library.