adjusting distance