res output compare