compare types