towards better handling of arrays