modify rest distance