changed useTempDistance to true always