updates to modelFunctions