Array sub difference problem