add kf distance setting func