separate match from type