added nearersourcepoint