cleanup rectangle