changes to xor assg per suggestions