added match recognition