change jarray to light-weight wrapping