replace calls to functions and parameters which don't exist.