initialized diff array