now handle masked arrays