stop match implementation