adding generator