adding tip_by_distance