minor change to remove duplicate array