quick fixe for generation method