added helper class darray