checking type