modified the way AdapterArray was updated.