fixed generator rules