curve merge