dynArray improvement