added shortest match