adjust the distance according to the close position, is