update function which searches for objects within the parent environment
my_update(mod, formula = NULL, data = NULL)