added support for box type and arrays