make match variable local to window