merge multi class