remade genreBase in java