fixed up match variable