added new array functionality