adds model defaults specified by a function