add array support like amd