restored xor rect for now