check dimension type