wrote near and far functions for curves
curve test_far