handle arrays