returning an array higher in the stack