detecting if match fails