new curve similarity done

work well