updated inputMatch directive