added xAnd, tests, methods