code with candidate merage.