add rectangle distance and test