asserts in genericFunctions.php