updated array_get and array_set