get value for shouldUndim