changed interpolationfacor dependent to the distance if so wanted