added type comparisons