check for output array