adding graphics
adding XOR improvement