scalar dimension check