fixes small bug in far function