first draft of array_length transform