fix array differencing