allow for masked arrays in integration