correct variable matching.generate script