Error Group curves by distance

@eng.minamaged

hmmm

maybe like this ?