add rectangle comparison