update genericFunctions