change distance to a nice input