getting distance well