fix; reduce comparison output code