Smoothening curves