add methods isscalar