move merge probability to backend