added new array functions