new function mergeGenres to Genre model