extend the input curves for multiple curves