added code for dealing with array
update
asdf