init output buf lens