added local array functionality