fixing Gen.int