XOR to toggle; made fewer lines