building the oderFunctions