use mean generator