patrickFunctions added