detect dimension types