the xors are all there, not sure if they are working though