updated array_get