Revert "updated with array handle"

This reverts commit cfabe8ebabf5e443196717a17d2e5da2c2745665.
Revert "Revert "updated with array handle""

This reverts commit 40a99770373566b9cfb4474664e3d7d5bd7287fa.
fixed bug