added near and far function description