please use .match instead of automatch variables here