put compare_type to the second place