one more oops (when global variables need substitutions)