added distortion and subtracting the theoretical value so the err dould tend to 0